import React from 'react'
import {Outlet,useNavigate} from 'react-router-dom'
export default function Home() {
    const Navigate = useNavigate()
    const changeNews = () =>{
        Navigate("/main/home/news/?user=陈凌文&id=250")
    }
    const changeHobby = () => {
        Navigate("/main/home/hobby/?user=陈凌文&id=250")
    }
  return (
    <div>
        <h3>我是Home的内容</h3>
        <button onClick={changeNews}>News</button>
        <button onClick={changeHobby}>Hobby</button>
        <Outlet/>
    </div>
  )
}
